home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / mandrake_MDKSA-2001-082.nasl < prev    next >
Text File  |  2005-01-14  |  7KB  |  240 lines

  1. #
  2. # (C) Tenable Network Security
  3. #
  4. # This plugin text was extracted from Mandrake Linux Security Advisory MDKSA-2001:082-1
  5. #
  6.  
  7.  
  8. if ( ! defined_func("bn_random") ) exit(0);
  9. if(description)
  10. {
  11.  script_id(13895);
  12.  script_version ("$Revision: 1.3 $");
  13.  
  14.  name["english"] = "MDKSA-2001:082-1: kernel";
  15.  
  16.  script_name(english:name["english"]);
  17.  
  18.  desc["english"] = "
  19. The remote host is missing the patch for the advisory MDKSA-2001:082-1 (kernel).
  20.  
  21.  
  22. Rafal Wojtczuk found a vulnerability in the 2.2.19 and 2.4.11 Linux kernels with
  23. the ptrace code and deeply nested symlinks spending an arbitrary amount of time
  24. in the kernel code. The ptrace vulnerability could be used by local users to
  25. gain root privilege, the symlink vulnerability could result in a local DoS.
  26. Update:
  27. There is an additional vulnerability in the kernel's syncookie code which could
  28. potentially allow a remote attacker to guess the cookie and bypass existing
  29. firewall rules. The discovery was found by Manfred Spraul and Andi Kleen.
  30. NOTE: This update is *not* meant to be done via MandrakeUpdate! You must
  31. download the necessary RPMs and upgrade manually by following these steps:
  32. 1. Type: rpm -ivh kernel-[version].i586.rpm 2. Type: mv
  33. kernel-[version].i586.rpm /tmp 3. Type: rpm -Fvh *.rpm 4a. You may wish to edit
  34. /etc/lilo.conf to ensure a new entry is in place. The new kernel will be the
  35. last entry. Change any options you need to change. You will also want to create
  36. a new entry with the initrd and image directives pointing to the old kernel's
  37. vmlinuz and initrd images so you may also boot from the old images if required.
  38. 4b. PPC users must execute some additional instructions. First edit
  39. /etc/yaboot.conf and add a new entry for the kernel and change any options that
  40. you need to change. You must also create a new initrd image to enable USB
  41. support for keyboards and mice by typing: mkinitrd --with=usb-ohci
  42. /boot/initrd-2.2.19-19.1mdk 2.2.19-19.1mdk 5a. Type: /sbin/lilo -v 5b. PPC users
  43. must type: /sbin/ybin -v
  44. You may then reboot and use the new kernel and remove the older kernel when you
  45. are comfortable using the upgraded one.
  46.  
  47.  
  48. Solution : http://www.mandrakesoft.com/security/advisories?name=MDKSA-2001:082-1
  49. Risk factor : High";
  50.  
  51.  
  52.  
  53.  script_description(english:desc["english"]);
  54.  
  55.  summary["english"] = "Check for the version of the kernel package";
  56.  script_summary(english:summary["english"]);
  57.  
  58.  script_category(ACT_GATHER_INFO);
  59.  
  60.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  61.  family["english"] = "Mandrake Local Security Checks";
  62.  script_family(english:family["english"]);
  63.  
  64.  script_dependencies("ssh_get_info.nasl");
  65.  script_require_keys("Host/Mandrake/rpm-list");
  66.  exit(0);
  67. }
  68.  
  69. include("rpm.inc");
  70. if ( rpm_check( reference:"alsa-2.2.19_0.5.10b-6.3mdk", release:"MDK7.1", yank:"mdk") )
  71. {
  72.  security_hole(0);
  73.  exit(0);
  74. }
  75. if ( rpm_check( reference:"alsa-source-2.2.19_0.5.10b-6.3mdk", release:"MDK7.1", yank:"mdk") )
  76. {
  77.  security_hole(0);
  78.  exit(0);
  79. }
  80. if ( rpm_check( reference:"kernel-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  81. {
  82.  security_hole(0);
  83.  exit(0);
  84. }
  85. if ( rpm_check( reference:"kernel-doc-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  86. {
  87.  security_hole(0);
  88.  exit(0);
  89. }
  90. if ( rpm_check( reference:"kernel-headers-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  91. {
  92.  security_hole(0);
  93.  exit(0);
  94. }
  95. if ( rpm_check( reference:"kernel-linus-2.2.20-1.1mdk", release:"MDK7.1", yank:"mdk") )
  96. {
  97.  security_hole(0);
  98.  exit(0);
  99. }
  100. if ( rpm_check( reference:"kernel-pcmcia-cs-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  101. {
  102.  security_hole(0);
  103.  exit(0);
  104. }
  105. if ( rpm_check( reference:"kernel-secure-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  106. {
  107.  security_hole(0);
  108.  exit(0);
  109. }
  110. if ( rpm_check( reference:"kernel-smp-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  111. {
  112.  security_hole(0);
  113.  exit(0);
  114. }
  115. if ( rpm_check( reference:"kernel-source-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  116. {
  117.  security_hole(0);
  118.  exit(0);
  119. }
  120. if ( rpm_check( reference:"kernel-utils-2.2.19-6.3mdk", release:"MDK7.1", yank:"mdk") )
  121. {
  122.  security_hole(0);
  123.  exit(0);
  124. }
  125. if ( rpm_check( reference:"reiserfs-utils-2.2.19_3.5.29-6.3mdk", release:"MDK7.1", yank:"mdk") )
  126. {
  127.  security_hole(0);
  128.  exit(0);
  129. }
  130. if ( rpm_check( reference:"alsa-2.2.19_0.5.10b-6.3mdk", release:"MDK7.2", yank:"mdk") )
  131. {
  132.  security_hole(0);
  133.  exit(0);
  134. }
  135. if ( rpm_check( reference:"alsa-source-2.2.19_0.5.10b-6.3mdk", release:"MDK7.2", yank:"mdk") )
  136. {
  137.  security_hole(0);
  138.  exit(0);
  139. }
  140. if ( rpm_check( reference:"kernel-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  141. {
  142.  security_hole(0);
  143.  exit(0);
  144. }
  145. if ( rpm_check( reference:"kernel-doc-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  146. {
  147.  security_hole(0);
  148.  exit(0);
  149. }
  150. if ( rpm_check( reference:"kernel-headers-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  151. {
  152.  security_hole(0);
  153.  exit(0);
  154. }
  155. if ( rpm_check( reference:"kernel-linus-2.2.20-1.1mdk", release:"MDK7.2", yank:"mdk") )
  156. {
  157.  security_hole(0);
  158.  exit(0);
  159. }
  160. if ( rpm_check( reference:"kernel-pcmcia-cs-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  161. {
  162.  security_hole(0);
  163.  exit(0);
  164. }
  165. if ( rpm_check( reference:"kernel-secure-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  166. {
  167.  security_hole(0);
  168.  exit(0);
  169. }
  170. if ( rpm_check( reference:"kernel-smp-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  171. {
  172.  security_hole(0);
  173.  exit(0);
  174. }
  175. if ( rpm_check( reference:"kernel-source-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  176. {
  177.  security_hole(0);
  178.  exit(0);
  179. }
  180. if ( rpm_check( reference:"kernel-utils-2.2.19-6.3mdk", release:"MDK7.2", yank:"mdk") )
  181. {
  182.  security_hole(0);
  183.  exit(0);
  184. }
  185. if ( rpm_check( reference:"reiserfs-utils-2.2.19_3.5.29-6.3mdk", release:"MDK7.2", yank:"mdk") )
  186. {
  187.  security_hole(0);
  188.  exit(0);
  189. }
  190. if ( rpm_check( reference:"kernel-linus2.2-2.2.20-1.1mdk", release:"MDK8.0", yank:"mdk") )
  191. {
  192.  security_hole(0);
  193.  exit(0);
  194. }
  195. if ( rpm_check( reference:"kernel22-2.2.19-20.1mdk", release:"MDK8.0", yank:"mdk") )
  196. {
  197.  security_hole(0);
  198.  exit(0);
  199. }
  200. if ( rpm_check( reference:"kernel22-secure-2.2.19-20.1mdk", release:"MDK8.0", yank:"mdk") )
  201. {
  202.  security_hole(0);
  203.  exit(0);
  204. }
  205. if ( rpm_check( reference:"kernel22-smp-2.2.19-20.1mdk", release:"MDK8.0", yank:"mdk") )
  206. {
  207.  security_hole(0);
  208.  exit(0);
  209. }
  210. if ( rpm_check( reference:"kernel22-source-2.2.19-20.1mdk", release:"MDK8.0", yank:"mdk") )
  211. {
  212.  security_hole(0);
  213.  exit(0);
  214. }
  215. if ( rpm_check( reference:"kernel-linus2.2-2.2.20-1.1mdk", release:"MDK8.1", yank:"mdk") )
  216. {
  217.  security_hole(0);
  218.  exit(0);
  219. }
  220. if ( rpm_check( reference:"kernel22-2.2.19-20.1mdk", release:"MDK8.1", yank:"mdk") )
  221. {
  222.  security_hole(0);
  223.  exit(0);
  224. }
  225. if ( rpm_check( reference:"kernel22-secure-2.2.19-20.1mdk", release:"MDK8.1", yank:"mdk") )
  226. {
  227.  security_hole(0);
  228.  exit(0);
  229. }
  230. if ( rpm_check( reference:"kernel22-smp-2.2.19-20.1mdk", release:"MDK8.1", yank:"mdk") )
  231. {
  232.  security_hole(0);
  233.  exit(0);
  234. }
  235. if ( rpm_check( reference:"kernel22-source-2.2.19-20.1mdk", release:"MDK8.1", yank:"mdk") )
  236. {
  237.  security_hole(0);
  238.  exit(0);
  239. }
  240.